Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

gh-149965: Improve thread-safety in ElementObjects within element_ass_subscr#149966

Open
clin1234 wants to merge 3 commits into
python:mainfrom
clin1234:patch-4
Open

gh-149965: Improve thread-safety in ElementObjects within element_ass_subscr#149966
clin1234 wants to merge 3 commits into
python:mainfrom
clin1234:patch-4

Conversation

@clin1234
Copy link
Copy Markdown
Contributor

@clin1234 clin1234 commented May 17, 2026

@clin1234 clin1234 changed the title gh-149965: Improve thread-safety in ElementObjects gh-149965: Improve thread-safety in ElementObjects within element_ass_subscr May 17, 2026
blurb-it Bot and others added 2 commits May 17, 2026 22:42
Commented out critical section assertion for ElementObject.
Comment thread Modules/_elementtree.c

// Pointer-by-pointer memmove for PyObject** arrays that is safe
// for shared ElementObjects in Py_GIL_DISABLED builds.
static void
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we should duplicate ptr_wise_atomic_memmove here.

Could you please link to the related C-API Working group issue in this PR, and cross-reference it in the original issue?

@@ -0,0 +1 @@
WIthin ``Modules/_elementtree.c``, improve thread-safety in ElementObjects within ``element_ass_subscr``
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
WIthin ``Modules/_elementtree.c``, improve thread-safety in ElementObjects within ``element_ass_subscr``
Improve thread-safety of ElementObjects in ``element_ass_subscr``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants